<style lang="less">
  @import 'MemberAuditing.less';
</style>
<template>
<div>
  bbb
</div>
</template>

<script>
  import {getOrganization, updateOrganization, getCurrentOrganization} from '@/api/organization'

  export default {
    name: 'UpdateInfo',
    data() {
      return {
        score:0,
        detail:[]
      }
    },
    mounted() {
      this.queryList();
    },
    methods: {
      queryList: function () {
        getCurrentOrganization().then(res => {
          const {id, name, code, email, phone, avatar, sid} = res.data;
          this.formItem = {
            id, name, code, email, phone, avatar, sid,
            password: ''
          };
        });
      },
      handleBeforeUpload() {

      },

      btnSaveClick: function () {
        updateOrganization(this.formItem.id, this.formItem).then(res => {
          if (res.data && res.data.affectedRows > 0) {
            this.$Message.success('保存成功!');
            this.queryList();
          } else {
            this.$Message.error(res.error);
          }
        });
      },
    }
  }

</script>
